package site.sorghum.ddl.solon;

import org.noear.solon.annotation.Bean;
import org.noear.solon.annotation.Configuration;
import org.noear.solon.annotation.Inject;
import org.noear.wood.DbContext;

import javax.sql.DataSource;

@Configuration
public class DbConfig {

    @Bean
    DbContext dbContext(@Inject DataSource dataSource) {
        return new DbContext(dataSource);
    }
}
